package com.gph.saviorframework.es.example.entities;

import com.gph.saviorframework.es.annotations.Document;
import com.gph.saviorframework.es.annotations.Field;
import com.gph.saviorframework.es.annotations.FieldIndex;
import com.gph.saviorframework.es.annotations.FieldType;
import org.springframework.data.annotation.Id;

@Document(indexName = "example7",type = "example7")
public class SampleEntity {

    @Id
    private String id;

    @Field(type = FieldType.String,index = FieldIndex.analyzed,
            analyzer = "ik_max_word",searchAnalyzer = "ik_max_word",store = true)
    private String message;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
